package com.sc.nft.util;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.util.RandomUtil;
import lombok.experimental.UtilityClass;

import java.text.SimpleDateFormat;

/**
 * @author liGen
 * @version 1.0
 * @date 2023/11/17 6:22 下午
 */
@UtilityClass
public class RefundNoUtil {

    /**
     * 获取售后编号
     *
     * @param
     * @param
     * @return
     */
    public String getRefundNo() {
        StringBuffer sb = new StringBuffer();
        sb.append("RF");
        sb.append(new SimpleDateFormat("yyyyMMddHHmmssss").format(DateTime.now()));
        sb.append(RandomUtil.randomInt(100000, 999999));
        return sb.toString();
    }

}
